
<h2>All This User's Posts</h2>
<ul id="user_post_list">
  <% if @posts.nil? || @posts.empty? %>
   <em>This user has no posts!</em>
 <% else
    for post in @posts %>
      <% date = DateTime.new()
      date = ( (post.updated_at.nil?) ? post.created_at : post.updated_at ).localtime %>
      <li><%= link_to( post.title, show_post_path(post.id)  ) %> - <%=date.strftime("%b. %d, %Y -- %I:%M %p") %></li>
    <% end
  end%>
</ul>

